home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / Mesa-1.2.1 / demos / Makefile < prev    next >
Encoding:
Makefile  |  1995-07-05  |  2.1 KB  |  94 lines

  1. # Makefile for demo programs
  2.  
  3. # Mesa 3-D graphics library
  4. # Version:  1.1 beta
  5. # Copyright (C) 1995  Brian Paul  (brianp@ssec.wisc.edu)
  6. #
  7. # This library is free software; you can redistribute it and/or
  8. # modify it under the terms of the GNU Library General Public
  9. # License as published by the Free Software Foundation; either
  10. # version 2 of the License, or (at your option) any later version.
  11. #
  12. # This library is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15. # Library General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU Library General Public
  18. # License along with this library; if not, write to the Free
  19. # Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21.  
  22. # $Id: Makefile,v 1.7 1995/05/01 15:25:20 brianp Exp brianp $
  23.  
  24. # $Log: Makefile,v $
  25. # Revision 1.7  1995/05/01  15:25:20  brianp
  26. # clean up and reorganize
  27. #
  28. # Revision 1.6  1995/04/20  13:39:05  brianp
  29. # added glxdemo, glxpixmap
  30. # removed accum, prim, stencil
  31. #
  32. # Revision 1.5  1995/03/07  14:27:01  brianp
  33. # added realclean target
  34. #
  35. # Revision 1.4  1995/03/01  21:08:51  brianp
  36. # replaced 'make' with $(MAKE)
  37. #
  38. # Revision 1.3  1995/02/24  16:48:44  brianp
  39. # fixed netbsd CFLAGS
  40. #
  41. # Revision 1.2  1995/02/24  16:26:26  brianp
  42. # added netbsd target
  43. #
  44. # Revision 1.1  1995/02/24  16:23:53  brianp
  45. # Initial revision
  46. #
  47.  
  48.  
  49. ##### MACROS #####
  50.  
  51. DESTDIR = /usr/skunk
  52.  
  53. INCDIR = ../include
  54.  
  55. GL_LIBS = -L../lib -lMesaaux -lMesatk -lMesaGLU -lMesaGL -lm $(XLIBS)
  56.  
  57. LIB_DEP = ../lib/$(GL_LIB) ../lib/$(GLU_LIB) ../lib/$(TK_LIB) ../lib/$(AUX_LIB)
  58.  
  59. PROGS = bounce glxdemo glxpixmap isosurf spin test0 wave xdemo
  60.  
  61.  
  62.  
  63. ##### RULES #####
  64.  
  65. .SUFFIXES:
  66. .SUFFIXES: .c
  67.  
  68. .c: $(LIB_DEP)
  69.     $(CC) $(CFLAGS) $< $(GL_LIBS) -o $@
  70.  
  71.  
  72.  
  73. ##### TARGETS #####
  74.  
  75. default:
  76.     @echo "Specify a target configuration"
  77.  
  78. clean:
  79.     -rm *.o *~
  80.  
  81. realclean:
  82.     -rm $(PROGS)
  83.     -rm *.o *~
  84.  
  85. targets: $(PROGS)
  86.  
  87. install: $(PROGS)
  88.     -mkdir -p $(DESTDIR)/lib/Mesa/demos
  89.     -cp $(PROGS) $(DESTDIR)/lib/Mesa/demos
  90.  
  91.  
  92. include ../Make-config
  93.  
  94.